﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace Sino.CapacityCloud.Repositories.Models
{

    public class Cost
    {

        //费用编号
        [Key()]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public string CostId { get; set; }

        //承运人编号
        public string UserId { get; set; }

        //申请时间
        public long ApplyTime { get; set; }

        //审核状态
        public string AuditState { get; set; }

        //费用金额
        public double CostPrice { get; set; }

        //费用类型
        public string CostType { get; set; }

        //承运单编号
        public string CarrierOrderId { get; set; }

        //费用说明
        public string Description { get; set; }

        //图片编号列表
        public virtual ICollection<AccidentPicture> AccidentPictures { get; set; }

        public Cost()
        {
            this.CostId = Guid.NewGuid().ToString();
            this.AccidentPictures = new List<AccidentPicture>();
        }

    }

}